﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IList<MyMainSite.Models.DeveloperComment>>" %>

<h2>Developer Comments</h2>

<% if (this.Model.Count <= 0)
   {
	   %><p>Sorry, there are no developer comments for this project at this time.</p><%
   }
   else
   {
	   %>
	    <nav>
        <ul class="projects ui-widget ui-helper-clearfix">
	   <%
	   foreach (var comment in this.Model)
	   {
			%>
				<li class="ui-state-default ui-corner-all" data-commentid="<%: comment.DeveloperCommentId %>">
					<div class="title"><%: comment.Date.ToLongDateString() %></div>
					<p><%: comment.Comment %></p>
					<div class="section"><%: comment.AuthorName %></div>
					<div class="section"><%: comment.AuthorEMailAddress %></div>
				</li>
			<%
	   }
	   %>
        </ul>
	    </nav>
	   <%
   }
%>